package org.tis.tools.senior.module.developer.controller.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;
import java.util.List;

/**
 * description:
 *
 * @author ljh
 * @date 2018/10/10
 **/
@Data
public class AgainDeliveryRequest {

    /**
     * 延期投产申请的guid
     */
    @NotNull(message = "延期投产申请的guid不能为空!")
    private Integer guidRepeal;

    @NotNull(message = "投放时间不能为空")
    private Date deliveryTime;

    @Pattern(regexp = "^(20|21|22|23|[0-1]\\d):[0-5]\\d$", message = "打包窗口不能为空或格式错误")
    private String packTiming;

    @NotEmpty(message = "延期投产的代码guid不能为空!")
    private List<Integer> guidRepealLists;
}
